﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewsMine.DomainObjects
{
    [Serializable]
    public class HtmlLink
    {
        public HtmlLink()
        {
            CategoriesFromFeed = new List<string>();
        }

        public string Title { get; set; }
        public string Link { get; set; }
        public string ImageUrl { get; set; }
        public string ImageAltText { get; set; }
        [NonSerialized]
        public string OuterHtml;

        [NonSerialized]
        public string HtmlXpath; //this attribute is going to be used in the analysis of the categorization and prioritization.
        
        //These below fields will be populated when the parsed from the feed stuff.
        public bool IsFeedSourced { get; set; }
        public string Description { get; set; }
        public List<string> CategoriesFromFeed { get; set; }
        public DateTime PubDate { get; set; }

        public string OriginalRefUrl;
    }
}
